<?php
/**
 * Created by JetBrains PhpStorm.
 * User: A.Delpiero
 * Date: 10/10/2554
 * Time: 1:47 น.
 * To change this template use File | Settings | File Templates.
 */


class menu{
    function head_stat(){ //main menu for select room
        echo "
        <ul>
		    <li><a href='statistic.php'>Meeting Room</a></li>
		    <li><a href='lab_room.php'>Lab room</a></li>
	    </ul>";
    }
}
class listMenu{//for select typeview and typechart

    function type_graph(){       // start view list
        $typeGraph= array("bar","line","pie");
        echo "type of view :   ";
            //loop for graph list
            echo "<select name='type_graph'>";
            for($i=0;$i<3;$i++){
                echo "<option value ="."$typeGraph[$i]".">".($typeGraph[$i])."</option>";
            }
            echo "<select>";
            //final view list
        return($typeGraph);
    }
    function type_view(){
        // start graph list
        $typeView = array ("week","month");
        echo " type of graph :   ";
            //loop for view list
            echo "<select name='type_view'>";
            for($i=0;$i<3;$i++){
                echo "<option value ="."$typeView[$i]".">".($typeView[$i])."</option>";
            }
            echo "<select>";
            // stop graph list
        return($typeView);
    }
    function button (){
        echo "<input type=\"submit\" name=\"Submit\" value=\"Submit\">";
    }
    function create_form($name,$action,$method){
       $name;
       $action;
       $method;
        echo("<form name=$this->name action=$this->action method=$this->method >");
    }
    function close_form(){
        return  '</form>';
    }
}
class content {
    function content(){
        
    }


}







?>





